.class Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3$1;
.super Ljava/lang/Object;
.source "TrackDialogs.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;->onShow(Landroid/content/DialogInterface;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;)V
    .locals 0

    .line 98
    iput-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3$1;->this$1:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 2

    .line 102
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3$1;->this$1:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;->val$input:Landroid/widget/EditText;

    invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p1

    .line 103
    iget-object v0, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3$1;->this$1:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;

    iget-object v1, v0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;->val$validator:Llt/noframe/gpsfarmguide/utils/Validator;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;->val$input:Landroid/widget/EditText;

    invoke-virtual {v1, v0}, Llt/noframe/gpsfarmguide/utils/Validator;->isEmpty(Landroid/widget/EditText;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 104
    iget-object v0, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3$1;->this$1:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;

    iget-object v0, v0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;->val$track:Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;->setName(Ljava/lang/String;)V

    .line 105
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3$1;->this$1:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;->val$trackdialog:Landroidx/appcompat/app/AlertDialog;

    invoke-virtual {p1}, Landroid/app/Dialog;->dismiss()V

    .line 106
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3$1;->this$1:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;

    iget-object v0, p1, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;->this$0:Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;

    iget-object v1, p1, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;->val$ctx:Landroid/content/Context;

    iget-object p1, p1, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;->val$track:Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;

    invoke-virtual {v0, v1, p1}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->asyncSaveTrack(Landroid/content/Context;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V

    :cond_0
    return-void
.end method
